package com.jie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.bind.DefaultValue;

/**
 * <p>
 * 
 * </p>
 *
 * @author jie
 * @since 2023-12-14
 */

@Data
@EqualsAndHashCode(callSuper = false)
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    private String username;

    /**
     * 1超级管理员，2管理员3员工
     */
    private Long type;

    /**
     * 0禁用，1启用
     */
    private Long status;
    private String password;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String phone;

    private Integer createAdminId;


}
